<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>用户登录</title>
		<link href="../web/css/login.css" type="text/css" rel="stylesheet">
	</head>
	<body>
		<div class="container">
		<!--头部信息-->
			<div class="header">
				<div class="img">
					<a href="../web/index.php"><img src="../web/img/huaweilogo.png"></a>
				</div>
				<span>|华为商城</span>
			</div>
			<div class="main">
			<!--中部左边图片-->
				<div class="imgleft">
					<img src="../web/img/imgleft.jpg">
				</div>
				<div class="fromright">
				<!--右边登录-->
					<p>欢迎登录华为管理员帐号</p>
					<form action="useraction.php?a=dologin" method="post">
					<input type="hidden" name="pubID" value="adminID"><!--隐藏标记便于获取错误编码-->
						<table width="400" border="0" style="border-collapse:separate; border-spacing:0px 20px;">
							<tr>
								<td align="right">账&nbsp;&nbsp;&nbsp;号：</td>
								<td><input type="text" name="username"></td>
							<tr>
							<tr>
								<td align="right">密&nbsp;&nbsp;&nbsp;码：</td>
								<td><input type="password" name="pass"></td>
							<tr>
							<tr>
								<td align="right">验证码：</td>
								<td><input type="text" size="7" style="width:100px;" name="code">
								<img src="../public/code.php" onclick="this.src='../public/code.php?id='+Math.random();"></td>
							<tr>
							<tr>
								<td colspan="2" align="center">
									<input type="submit" value="登录" style="font-size:20px;font-weight:bold;letter-spacing:18px">
								</td>
							</tr>
						</table>
					</form>
				</div>
				<span style="color:red">
				<?php
					switch($_GET['eno']){
						case 1:
							echo "验证码错误";break;
						case 2:
							echo "账号错误！";break;
						case 3:
							echo "密码错误！";break;
						case 4:
						echo "请输入账号！";break;
						case 5:
						echo "请输入密码！";break;
					}
				?>
		</span>
			</div>
		</div>
	</body>
</html>